package com.sftz.assets.entities.question;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

@Data
@Table("homework")
public class HomeworkEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id(auto = true)
	private Integer id;

	@Column
	@Comment("标题")
	private String title;

	@Column
	@Comment("创建时间")
	private Date createDate;

	@Column
	@Comment("创建者")
	private Integer creator;

	@Column
	@Comment("是否删除")
	private Integer isDelete;

	@Column
	@Comment("状态（0：未上架，1：已上架）")
	private Integer status;

	@Column
	@Comment("课程id")
	private Integer courseId;

	@Column
	@Comment("课程章节id")
	private Integer chapterId;

	@Column
	@Comment("课程结构id")
	private Integer courseStructureId;

	@Column
	@Comment("课程章节id")
	private Integer sectionId;

	@Column
	@Comment("机构id")
	private Integer institutionId;

	@Column
	@Comment("归属类型（1：个人，2：机构）")
	private Integer belong;

	@Column
	@Comment("使用状态")
	private Integer useStatus;

	@Column
	@Comment("回答时间")
	private Integer answerTime;

	@Column
	@Comment("分模块3")
	private Integer examOption;

	@Column
	@Comment("总分")
	private Integer score;

	@Column
	@Comment("开始时间")
	private Date startDate;

	@Column
	@Comment("结束时间")
	private Date endTime;

	@Column
	@Comment("允许答题次数")
	private Integer answerNumber;

	@Column
	@Comment("得分规则")
	private Integer rule;

	@Column
	@Comment("温馨提示")
	private String warning;

	@Column
	@Comment("权重占比")
	private Double rating;

	@Column
	@Comment("权重占比分数")
	private Double ratingScore;

	@Column
	@Comment("及格分数")
	private Integer passScore;

}